package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_SendCfgCtrl extends SkymobiProtocolMessage {
	byte[] cfgBuffer;

	public Mmochat_SendCfgCtrl() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_SEND_CFGCTROL);
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putUnsignedShort(cfgBuffer.length);
		out.put(cfgBuffer);
	}

	public void setCfgBuffer(byte[] cfgBuffer) {
		this.cfgBuffer = cfgBuffer;
	}

}